package cn.com.headfree.loginmes.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.headfree.entity.LoginMes;
import cn.com.headfree.entity.isc.User;
import cn.com.headfree.loginmes.dao.ILoginMesDao;
import cn.com.headfree.loginmes.service.ILoginMesService;

@Service("loginMesService")
public class LoginMesServiceImpl implements ILoginMesService {
	
	@Autowired
	private ILoginMesDao loginMesDao;

	@Override
	public void addLoginMes(User user, String loginIp) {
		loginMesDao.addLoginMes(user,loginIp);
	}

	@Override
	public List<LoginMes> getAllLoginTimes() {
		return loginMesDao.getAllLoginTimes();
	}

}
